#!/usr/bin/env python
#coding=utf-8

import wx

from editPanel import EditPanel
from inputPanel import InputPanel
from learnPanel import LearnPanel
import wx.lib.agw.flatnotebook as fnb

class Notebook(fnb.FlatNotebook):
    ''' Representation of our basic three tabs: edit,learn,input. '''

    def __init__(self, view, *args, **kwargs):
        ''' view -> main application view. '''

        fnb.FlatNotebook.__init__(self, view, *args, **kwargs)
        self.view = view

    def create_notebooks(self, config):
        ''' Create our three central notebooks.   '''

        self.create_learnPanel(config)
        self.create_editPanel(config)
        self.create_inputPanel(config)


    def create_inputPanel(self, config):
        ''' Create panel for entering new vocs. '''

        self.inputPanel = InputPanel(self, config)
        self.AddPage(self.inputPanel,"Input")

    def create_editPanel(self, config):
        ''' Create panel for edit existing vocs. '''
        self.editPanel = EditPanel(self, config)
        self.AddPage(self.editPanel,"Edit")

    def create_learnPanel(self, config):
        ''' Create panel for learning vocs. '''

        self.learnPanel = LearnPanel(self, config)
        self.AddPage(self.learnPanel,"Learn")

    def create_learnPanel2(self, config):
        self.learnPanel2 = LearnPanel2(self, config)
        self.AddPage(self.learnPanel2, "Experimental")